package cn.iocoder.yudao.module.promotion.linkage21.service;

import cn.iocoder.yudao.framework.business.basic.dao.query.CoreQueryWrapper;
import cn.iocoder.yudao.framework.business.basic.service.CrudService;
import cn.iocoder.yudao.framework.business.basic.service.impl.BaseService;
import cn.iocoder.yudao.module.promotion.linkage21.convert.Linkage21UserConvert;
import cn.iocoder.yudao.module.promotion.linkage21.dao.Linkage21UserMapper;
import cn.iocoder.yudao.module.promotion.linkage21.pojo.dto.Linkage21UserQueryDTO;
import cn.iocoder.yudao.module.promotion.linkage21.pojo.dto.Linkage21UserSaveDTO;
import cn.iocoder.yudao.module.promotion.linkage21.pojo.po.Linkage21User;
import cn.iocoder.yudao.module.promotion.linkage21.pojo.vo.Linkage21UserVO;
import jakarta.annotation.Nonnull;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

/**
 * <pre>
 * OOoO0OOoO0OOOooo0oOOOO0OOOOO0oooOO0ooOOO0Ooooo0OOOOo0ooooO0OOooo0Ooooo0OOOOO
 * 服务实现类
 * OOoO0OOoO0OOOooo0oOOOO0OOOOO0oooOO0ooOOO0Ooooo0OOOOo0ooooO0OOooo0Ooooo0OOOOO
 * </pre>
 *
 * @author 山野羡民（1032694760@qq.com）
 * @since 2025/04/12
 */
@Service
public class Linkage21UserService extends BaseService<Linkage21User, Linkage21UserVO, Linkage21UserQueryDTO> implements CrudService<Linkage21User, Linkage21UserVO, Linkage21UserSaveDTO, Linkage21UserQueryDTO> {
    @Resource
    private Linkage21UserMapper linkage21UserMapper;

    @Override
    public Linkage21UserMapper getInjectedMapper() {
        return linkage21UserMapper;
    }

    @Override
    public Linkage21User convertToEntity(Linkage21UserSaveDTO param) {
        return Linkage21UserConvert.INSTANCE.toEntity(param);
    }

    @Nonnull
    @Override
    protected CoreQueryWrapper<Linkage21User> buildQueryWrapper(Linkage21UserQueryDTO param) {
        CoreQueryWrapper<Linkage21User> wrapper = super.buildQueryWrapper(param);
        // TODO 添加自定义查询条件
        return wrapper;
    }

}
